// Project name:JavaRedis
// Creator:muhong
// Date time:2022/12/17,12:27 下午
// Name:AbstractEventExecutorGroup

package org.gmh.util.concurrent;

import java.util.concurrent.Callable;

public abstract class AbstractEventExecutorGroup implements EventExecutorGroup {

    @Override
    public Future<?> submit(Runnable task) {
        return next().submit(task);
    }

    @Override
    public <T> Future<T> submit(Runnable task, T result) {
        return next().submit(task, result);
    }

    @Override
    public <T> Future<T> submit(Callable<T> task) {
        return next().submit(task);
    }

    @Override
    public void execute(Runnable command) {
        next().execute(command);
    }
}
